#include<stdio.h>

int main()
{
    int head, feet;
    scanf("%d %d", &head, &feet);
    int j, t;
    j = (head * 4 - feet) / 2;
    t = head - j;
    if(j < 0 || t < 0 || feet % 2 != 0)
        printf("No Answer");
    else 
        printf("%d %d", j, t);

    return 0;
}
/*
假如12个头， 40个脚
t + j == 12  --> t = 12 - j;
2 * j + 4 * t == 40  -->  2 * j + 4 * (12 - j) == 40

48- 2 * j == 40  2 * j == 8   j == 4
分析
48- 2 * j == 40
48= 12 * 4 假设全是兔子
那么j == 
*/